<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>危险源清单</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="format-detection" content="telephone=no">
		<link rel="stylesheet" href="../../../layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="../../../css/public.css" media="all" />
		<link rel="stylesheet" href="list.css" />
		<link rel="stylesheet" href="../../common/zTreeStyle.css" />
		<style>
			body {
				padding: 20px;
			}
			
			.multi dl dd.layui-this {
				background-color: #fff
			}
		</style>
	</head>

	<body class="childrenBody">
		<form class="layui-form">
			<form class="layui-form" style="margin-bottom: 20px;">
				<div class="layui-inline">
					<div class="layui-input-inline">
						<input type="text" class="layui-input searchVal" id="inptext" placeholder="编号/名称" />
					</div>
					<a class="layui-btn  layui-btn-normal layui-btn-sm" style="position: relative;top: 0px; left:-4px;" id="findscri" data-type="reload"><i class="layui-icon">&#xe615;</i></a>
				</div>
				<div class="layui-inline" style="float: right;margin-left: 30px;">
					<a class="layui-btn layui-btn-danger layui-btn-sm layui-btn-normal layui-bg-blue edit_btn"><i class="layui-icon">&#xe642;</i>编辑</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left: 30px;">
					<a class="layui-btn layui-btn-sm layui-btn-danger layui-btn-normal layui-bg-blue delAll_btn"><i class="layui-icon">&#x1006;</i>删除</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left:30px;">
					<a class="layui-btn layui-btn-sm layui-btn-normal addNews_btn"><i class="layui-icon">&#xe654;</i>新增</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left: 30px;">
					<a class="layui-btn layui-btn-sm layui-btn-normal layui-bg-blue export_btn"><i class="layui-icon">&#xe609;</i>导出</a>
				</div>
				<div class="layui-inline" style="float: right;margin-left:30px;">
					<a class="layui-btn layui-btn-sm layui-btn-normal layui-bg-blue import_btn"><i class="layui-icon">&#xe681;</i>导入</a>
				</div>
			</form>

			<form class="layui-form" style="margin-top: 14px;margin-bottom: 15px;">
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">单位选择</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<input type="text" id="resclas" readonly="" placeholder="选择单位" style="padding-left:5px;overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 1;
                 -webkit-box-orient:vertical;width: 150px;" autocomplete="off" class="layui-input" lay-verify="required">
						<ul id="danwei" class="ztree" style="height:300px;width: 239px; overflow: auto;display: none;position: absolute;z-index: 999;background:white;">
						</ul>
					</div>
				</div>

				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">类型</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<select name="type" id="type" style="width: 150px;height: 30px" multiple="multiple_type">
							<option value="">请选择</option>
						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">作业风险</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<select name="risk" id="risk" style="width: 150px;height: 30px" multiple="multiple_risk">
							<option value="">请选择</option>
							<option value="中毒">中毒</option>
							<option value="窒息">窒息</option>
							<option value="采光不良">采光不良</option>
							<option value="空间受限">空间受限 </option>
							<option value="高温">高温 </option>
							<option value="坠落">坠落</option>
							<option value="溶剂油">溶剂油 </option>
							<option value="原油">原油 </option>
							<option value="盐酸">盐酸</option>
							<option value="硫酸">硫酸</option>
							<option value="氨水">氨水</option>
							<option value="噪音">噪音</option>
							<option value="破乳剂">破乳剂</option>
							<option value="放射源">放射源</option>
							<option value="放射源">放射源</option>
							<option value="甲烷">甲烷</option>
							<option value="非甲烷总烃">非甲烷总烃</option>
							<option value="硫化氢">硫化氢</option>
							<option value="视屏终端综合征">视屏终端综合征（VDT）</option>
							<option value="T">T</option>
							<option value="T/I">T/I</option>
							<option value="T/C/I/R/In">T/C/I/R/In</option>
							<option value="易燃液体">易燃液体</option>
							<option value="腐蚀品">腐蚀品</option>
							<option value="机械伤害">机械伤害</option>
							<option value="含油污水">含油污水</option>
							<option value="废旧零配件">废旧零配件</option>
							<option value="排烟">排烟</option>
							<option value="油液">油液</option>
							<option value="废旧盘根">废旧盘根</option>
							<option value="废旧机油">废旧机油</option>
							<option value="废旧线缆">废旧线缆</option>
							<option value="废旧元件">废旧元件</option>
							<option value="工业垃圾">工业垃圾</option>
							<option value="沾油垃圾">沾油垃圾</option>
							<option value="废旧垫子/螺栓等">废旧垫子/螺栓等</option>
							<option value="废旧管材">废旧管材</option>
							<option value="生活垃圾">生活垃圾</option>
							<option value="生活污水">生活污水</option>

						</select>
					</div>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 56px;padding:0 5px;line-height:30px">风险因素</label>
					<div class="layui-input-block" style="position: relative;margin-left:80px">
						<select name="factor" id="factor" multiple="multiple_factor">
							<option value="">请选择</option>
							<option value="物">物</option>
							<option value="环境">环境</option>
							<option value="物理">物理</option>
							<option value="化学">化学</option>
							<option value="不适用">不适用</option>
						</select>
					</div>
				</div>

				<div class="layui-inline">
					<button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="seleCheck" style="position: relative;top: -3px;margin-left:10px;">筛选
            </button>
				</div>
			</form>
			<table id="dangerList" lay-filter="dangerList"></table>
			<div class="model">
				<div class="title">
					选择需要添加的危险源类别
					<i class="layui-icon layui-unselect layui-tab-close">ဆ</i>
				</div>
				<div class="content">
					<ul>
						<li>
							<a mhref="../addGM/add.html">通用模板</a>
						</li>
						<li>
							<a mhref="../addERR/add.html">危险物料</a>
						</li>
						<li>
							<a mhref="../addElement/add.html">环境因素</a>
						</li>
					</ul>
				</div>
				<div class="button"><button class="layui-btn layui-btn-normal">确定</button></div>
			</div>
		</form>
		<script type="text/javascript" src="../../common/jquery-1.11.3.min.js"></script>
		<script type="text/javascript" src="../../common/config.js"></script>
		<script type="text/javascript" src="../../../layui/layui.js"></script>
		<script type="text/javascript" src="../../common/jquery.ztree.core.js"></script>
		<script type="text/javascript" src="../../common/jquery.ztree.excheck.js"></script>
		<script type="text/javascript" src="list.js"></script>
		<script type="text/javascript">
            var salt = sessionStorage.getItem('usersalt');
            //类型选择
            $.post(url + "dangerList/getAllType", {
                Token: salt,
            }, function(data) {
                if(data.code == 0) {
                    var list = data.data;
                    list.forEach(function(item) {
                        var option = "<option value='" + item.name + "'>" + item.name + "</option>";
                        $("#type").append(option)
                        layui.use(['form'], function () {
                            var form = layui.form
                            form.render();
                        })
                    });

                }
            })
			$("body").click(function() {
				$("#danwei").hide();
			})
			$('#resclas').click(function() {
				return false;
			});
			$('#danwei').click(function() {
				return false;
			});
		</script>

	</body>

</html>